    <!-- 消息闪现 -->
    <script src="${STATIC_URL}opsplatform/js/sweetalert.min.js"></script>
      <link rel="stylesheet" type="text/css" href="${STATIC_URL}opsplatform/css/sweetalert.css">
          <link rel="stylesheet" type="text/css" href="${STATIC_URL}opsplatform/css/bootstrap.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<style>
.test_box {

    min-height: 600px;
    max-height: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 3px;
    outline: 0;
    border: 1px solid #a0b3d6;
    font-size: 12px;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-user-modify: read-write-plaintext-only;
    background-color: #161616;
    color:green;
}
</style>
执行结果:
<div class="test_box" contenteditable="true"><br /></div>






<button class="btn btn-xl btn-primay" onclick="run()">执行吧！</button>







<script>
    function start() {
        $.ajax({
            url: "http://dev.sctux.com:8000/task_result/",
            type: "get",

            success:function (res) {
                $(".test_box").append(res.data,"\n");
                $(".test_box").scrollTop(50000000)

            }
        })
    }

    window.onload=function(){
                   //每隔2秒检查一下数据
                   window.setInterval(start,1000);
                   };
</script>

<script>
if (typeof document.webkitHidden == "undefined") {
    box.onpaste = function() {
        return false;
    }
}
</script>